package com.supcon.exchangedata.repository.slave7;


import com.supcon.exchangedata.pojo.entity.mysql.operation.lq.LqMaintainCarBase;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *   路桥车辆信息
 * @Author: yangbin
 * @Date: 2022/04/20/9:00
 * @Description:
 */
public interface SlaveLqCarInfo extends JpaRepository<LqMaintainCarBase, Long> {

    @Transactional
    @Modifying
    @Query(nativeQuery = true,value = "select * from lq_maintain_car_base where car_number is not null and op in('insert','update')")
    public List<LqMaintainCarBase> findRoadCar();
}
